﻿using System;
using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    class IntExt: ExtPropValueBase
    {
        private byte _value;

        public IntExt(byte value)
        {
            this._value = value;
        }

        public IntExt()
        {
        }

        public override void Read(BinaryReader reader)
        {
            _value = reader.ReadByte();
        }

        public override int Length
        {
            get { return 1; }
        }

        public byte Value
        {
            get { return _value; }
        }

        public override void Write(BinaryWriter writer)
        {
            writer.Write((byte)_value);
        }
    }
}